package iedcyt.acute.dataAccess.dao.maauco;

import iedcyt.acute.dataAccess.domain.maauco.Ma0;
import iedcyt.acute.dataAccess.generic.ResultSetGenericExtractor;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.ResultSetExtractor;



public class Ma0ResultSetExtractor extends ResultSetGenericExtractor implements ResultSetExtractor<Ma0> {

	@Override
	public Ma0 extractData(ResultSet rs) throws SQLException {
		Ma0 doc = new Ma0(getInteger(rs, "IDNO"), rs.getInt("NUMAUTORES"), rs.getInt("NUMORG"),
				rs.getInt("TC"), rs.getInt("RF"), rs.getString("TITULO"),rs.getString("JOURNAL"),getInteger(rs, "idPub"),
				rs.getString("YEAR"),rs.getString("GA"),rs.getString("TYPE"),
				rs.getString("LANGUAGE"),rs.getString("VOLUME"), rs.getString("PAG"),
				rs.getString("VOYPAG"), rs.getString("PROVIENE"), rs.getString("UTID"), rs.getString("USUARIO"));
		

		return doc;
	}

}
